cmake_minimum_required(VERSION 3.0.2)

project(test_rosservice)
find_package(catkin REQUIRED COMPONENTS genmsg rosunit rostest std_msgs)

if(CATKIN_ENABLE_TESTING)
  add_service_files(DIRECTORY srv
    FILES
    HeaderEcho.srv
    NOINSTALL
    )
  generate_messages(DEPENDENCIES std_msgs)
endif()

catkin_package()

if(CATKIN_ENABLE_TESTING)
  catkin_add_nosetests(test)

  add_rostest(test/rosservice.test)
  #add_rostest(test/rosservice_unit.test)
endif()
